//
//  AddNewAddressMiddleCell.m
//  ShangHaiTuJI
//
//  Created by xiaoxiangtuji on 2017/8/1.
//  Copyright © 2017年 xiaoxiangtuji. All rights reserved.
//

#import "AddNewAddressMiddleCell.h"

@implementation AddNewAddressMiddleCell

- (void)awakeFromNib {
    [super awakeFromNib];
}
-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.labell = [[UILabel alloc] init];
        self.labell.text = @"所在地区";
        self.labell.font = [UIFont systemFontOfSize:15];
        self.labell.textColor = [UIColor blackColor];
        [self.contentView addSubview:self.labell];
        [self.labell mas_makeConstraints:^(MASConstraintMaker *make) {
            make.centerY.equalTo(self.contentView.mas_centerY);
            make.left.equalTo(self.contentView.mas_left).offset(scaleLeftAndRight(10));
            make.size.mas_equalTo(CGSizeMake(scaleLeftAndRight(100), scaleTopAndBottom(20)));
        }];
        UIImageView *ImageView = [[UIImageView alloc] init];
        [self.contentView addSubview:ImageView];
        [ImageView mas_makeConstraints:^(MASConstraintMaker *make) {
            make.centerY.equalTo(self.contentView.mas_centerY);
            make.right.equalTo(self.contentView.mas_right).offset(scaleLeftAndRight(-10));
            make.size.mas_equalTo(CGSizeMake(scaleLeftAndRight(15), scaleTopAndBottom(20)));
        }];
        _labl = [[UILabel alloc] init];
        [self.contentView addSubview:_labl];
        _labl.text = @"请选择";
        _labl.font = [UIFont systemFontOfSize:15];
        _labl.textColor = COLOR_HEX(0x121212);
        _labl.textAlignment = NSTextAlignmentRight;
        [_labl mas_makeConstraints:^(MASConstraintMaker *make) {
            make.centerY.equalTo(self.contentView.mas_centerY);
            make.left.equalTo(self.labell.mas_right);
            make.right.equalTo(self.contentView.mas_right).offset(scaleLeftAndRight(0));
        }];
//        self.labell.backgroundColor = [UIColor redColor];
    }
    return self;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
